Skip to content

Conversation

aspeddro
Copy link
Contributor

@aspeddro aspeddro commented Jun 5, 2024

Perhaps add chrOpt, return option<chr>, @zth, @fhammerschmidt?

TODO:

  • Get rid of PervasivesU
  • Add docstrings
  • Update CHANGELOG.md

Close #228


/* The following is for system use only. Do not call directly. */

external unsafeChr: int => char = "%identity"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to chrUnsafe

@fhammerschmidt
Copy link
Member

Yes, a chrOpt that checks if a given int is in the valid char range and only then returns a Some(char) is missing currently, imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Char module
2 participants